package simulation;

import streaming.Host;

public class AttendRequest implements EventHandler {
	
	Host host;
	Host source;
	int seqNo;
	String data;
	boolean requestFromCM;
	
	public AttendRequest(Host newHost, int newSeqNo, String data, Host newSource, boolean requestFromCM) {
		this.setHost(newHost);
		this.setSeqNo(newSeqNo);
		this.setData(data);
		this.setSource(newSource);
		this.setRequestFromCM(requestFromCM);
	}
	
	public void run(double time){
//		if (this.getHost().getId() == -1)
//			return;
//		this.getHost().handleRequest(this.getSeqNo(), this.getSource());
	}

	/* Getters and Setters */
	
	public Host getHost() {
		return host;
	}

	public void setHost(Host host) {
		this.host = host;
	}

	public Host getSource() {
		return source;
	}

	public void setSource(Host source) {
		this.source = source;
	}

	public int getSeqNo() {
		return seqNo;
	}

	public void setSeqNo(int seqNo) {
		this.seqNo = seqNo;
	}
	
	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public boolean isRequestFromCM() {
		return requestFromCM;
	}

	public void setRequestFromCM(boolean requestFromCM) {
		this.requestFromCM = requestFromCM;
	}
}